var utils = require('../utils/utils.js');

module.exports = {
  //统一字典下拉框查询
  dict: (data, cd) => utils.get('/app/v1/customer/common/dict', data, cd),
  //资产列表
  assetList: (data, cd) => utils.get('/app/v2/customer/asset/assetList', data, cd),
  //资产使用码信息查询
  customerAssetInfo: (data, cd) => utils.get('/app/v2/customer/asset/customerAssetInfo', data, cd),
  //资产兑换列表
  assetLinkageList: (data, cd) => utils.get('/app/v2/asset/linkage/assetLinkageList', data, cd),
  //资产兑换支付页面
  customerExchangePage: (data, cd) => utils.put('/app/v2/asset/linkage/customerExchangePage', data, cd),
  //兑换资产
  customerExchangeAsset: (data, cd) => utils.twopost('/app/v2/asset/linkage/customerExchangeAsset', data, cd),
  //转赠人列表
  contactPeople: (data, cd) => utils.get('/app/v2/give/contact', data, cd),
  //搜索对方信息
  customerInfo: (data, cd) => utils.get('/app/v2/give/order/customerInfo', data, cd),
  //转赠资产列表
  zzassetList: (data, cd) => utils.get('/app/v2/give/order/assetList', data, cd),
  //添加转赠单
  addGive: (data, cd) => utils.twopost('/app/v2/give/order/addGive', data, cd),
  //赠送支付确认
  pay: (data, cd) => utils.onepost('/app/v2/give/order/pay', data, cd),
  //判断是否设置支付密码
  checkPayPsw: (data, cd) => utils.get('/app/v2/customer/checkPayPsw', data, cd),
  //转赠记录
  transferRecord: (data, cd) => utils.get('/app/v2/give/order', data, cd),
  //赠送详情_赠送方
  sendGive: (data, cd) => utils.get('/app/v2/give/order/sendGive', data, cd),
  //赠送详情_接收方
  receiveGive: (data, cd) => utils.get('/app/v2/give/order/receiveGive', data, cd),
  //领取赠送资产详情
  shareDetail: (data, cd) => utils.get('/app/v2/give/order/shareDetail', data, cd),
  //领取赠送资产
  receive: (data, cd) => utils.get('/app/v2/give/order/receive', data, cd),
  //生成转赠码-个人
  giveQrCode: (data, cd) => utils.get('/app/v2/give/order/giveQrCode', data, cd),
  //解析个人转赠码
  parGiveQrCodeUrl: (data, cd) => utils.get('/app/v2/give/order/parGiveQrCodeUrl', data, cd),
  //解析资产赠送码
  parGiveOrderQrCodeUrl: (data, cd) => utils.get('/app/v2/give/order/parGiveOrderQrCodeUrl', data, cd),
  //转卖回显
  echo: (data, cd) => utils.get('/app/v1/resell/echo', data, cd),
  //转卖
  resell: (data, cd) => utils.twopost('/app/v1/resell', data, cd),
  //查询用户持有卡列表
  cardList: (data, cd) => utils.get('/app/v2/customer/asset/card/shareholder/list', data, cd),
  //查询用户持有卡详情
  cardDetail: (data, cd) => utils.get('/app/v2/customer/asset/card/shareholder/detail', data, cd),
  //查询用户持卡的分红数据
  dividend: (data, cd) => utils.get('/app/v2/customer/asset/card/shareholder/dividend', data, cd),
  //查询用户拉新数据分页列表
  commission: (data, cd) => utils.get('/app/v2/customer/asset/card/shareholder/commission', data, cd),
  //卡详情
  customerCardDetail: (data, cd) => utils.get('/app/v1/asset/card/customerCardDetail', data, cd),
  //查询用户荣誉分享
  honerShare: (url, data, cd) => utils.get(url, data, cd),
  //查询用户用卡明细
  billCardlist: (data, cd) => utils.get('/app/v1/customer/money/bill/card/list', data, cd),
  //更新股东卡分红查看状态
  dividendLook: (url, data, cd) => utils.putTwo(url, data, cd),
  //查询用户用卡明细_课时卡
  classHour: (data, cd) => utils.get('/app/v1/customer/card/verification', data, cd),
  //查询购卡信息
  customerBuyCardInfo: (data, cd) => utils.get('/app/v1/asset/card/customerBuyCardInfo', data, cd),
  //计次卡课时卡消费记录
  verificationRecord: (data, cd) => utils.get('/app/v1/customer/card/verification/verificationRecord', data, cd),
  //计次卡课时卡消费记录
  rechargeRecord: (data, cd) => utils.get('/app/v1/customer/money/bill/rechargeRecord', data, cd),
  //查询购卡成功信息
  //  succeedCardinfo: (data, cd) => utils.get('/app/v1/asset/card/buy/succeed', data, cd),
  succeedCardinfo: (url, data, cd) => utils.get(url, data, cd),
   //查询抖音团购购卡成功返回值
  succeedDyCardinfo: (url, data, cd) => utils.get(url, data, cd),
  //用户主动核销获取卡信息
  verificationCardInfo: (data, cd) => utils.get('/app/v1/customer/card/verification/cardInfo', data, cd),
  //用户核销卡
  writeoffCard: (data, cd) => utils.twopost('/app/v1/customer/card/verification/card', data, cd),
  //解析退卡码
  parseRefundQrCode: (data, cd) => utils.get('/app/v1/asset/card/parseRefundQrCode', data, cd),
  //确认退卡
  confirmRefundCard: (data, cd) => utils.onepost('/app/v1/asset/card/confirmRefundCard', data, cd),
  //确认退款
  confirmRefund: (data, cd) => utils.onepost('/app/v1/asset/card/confirmRefund', data, cd),
  //匿名登录
  silentAuthorization: (data, cd) => utils.onepost('/app/v1/customer/pay/silentAuthorization', data, cd),
  //体验卡退卡
  experienceReturnCard: (data, cd) => utils.onepost('/app/v1/asset/card/experienceReturnCard', data, cd),
  //查询爆卡分页列表
  experienceCardLs: (data, cd) => utils.get('/app/v1/asset/card/experienceCard/list', data, cd),
  //我的资产
  customerCardInfo: (data, cd) => utils.get('/app/v2/customer/assetInfo', data, cd),
  //查询我的券包数量
  couponCount: (data, cd) => utils.get('/app/v1/customer/coupon/count', data, cd),
  //查询可用优惠券列表
  canUseList: (data, cd) => utils.get('/app/v1/customer/coupon/can/use/list', data, cd),
  //查询已使用或已过期优惠券
  useVouchenrList: (data, cd) => utils.get('/app/v1/customer/coupon/use/list', data, cd),
  //查询优惠券详情
  couponDetail: (url,data, cd) => utils.get(url, data, cd),

  //查询用户持有平台资产情况（1.9）
  assetCustomerInfo: (data, cd) => utils.get('/app/v1/platform/asset/customer/info', data, cd),
  //查询用户待领取FB数组(1.9)
  assetCustomerList: (data, cd) => utils.get('/app/v1/platform/asset/customer/receive/list', data, cd),
  //用户领取FB（1.9）
  customerReceive: (data, cd) => utils.onepost('/app/v1/platform/asset/customer/receive', data, cd),
  //查询平台fb信息（1.9）
  fbInfo: (data, cd) => utils.get('/app/v1/platform/asset/fb/info', data, cd),
  //查询用户持FB信息（1.9）
  customerFbInfo: (data, cd) => utils.get('/app/v1/platform/asset/customer/fb/info', data, cd),
  //查询用户分红折线图（1.9）
  dividendInfo: (data, cd) => utils.get('/app/v1/platform/asset/customer/dividend/info', data, cd),
  //查询用户指定时间分红列表（1.9）
  dividendList: (data, cd) => utils.get('/app/v1/platform/asset/customer/dividend/list', data, cd),
  //查询用户指定时间FB收支明细（1.9）
  platformFbList: (data, cd) => utils.get('/app/v1/platform/asset/customer/fb/list', data, cd),
  //查询用户蜂蜜分持有信息（1.9）
  integralInfo: (data, cd) => utils.get('/app/v1/platform/asset/customer/integral/info', data, cd),
  //查询用户指定时间蜂蜜分收支明细（1.9）
  integralList: (data, cd) => utils.get('/app/v1/platform/asset/customer/integral/list', data, cd),
  //查询用户提现记录
  withdrawList: (data, cd) => utils.get('/app/v1/customer/money/bill/withdraw/list', data, cd),
  //查询用户兑换蜂蜜分界面（1.9）
  getIntegralExchange: (data, cd) => utils.get('/app/v1/platform/asset/customer/integral/exchange', data, cd),
  //用户兑换蜂蜜（1.9）
  integralExchange: (data, cd) => utils.onepost('/app/v1/platform/asset/customer/integral/exchange', data, cd),
  //商家店铺是否下架判断
  isDeactivate: (data, cd) => utils.get('/app/v1/customer/shop/isDeactivate', data, cd),
  //1.9.4
  //查询领取福利卡页面信息
  wealDrawInfo: (data, cd) => utils.get('/app/v1/asset/card/wealDrawInfo', data, cd),
  //查询领取福利卡商家分页信息
  assetCardWealShopInfo: (data, cd) => utils.get('/app/v1/asset/card/assetCardWealShopInfo', data, cd),
  //领取福利卡
  assetCardWealDraw: (data, cd) => utils.onepost('/app/v1/asset/card/assetCardWealDraw', data, cd),
  // 2022-5-17
  //店铺详情-查询商家信用等级
  levelTips: (url, data, cd) => utils.get(url, data, cd),
  //2022-5-20
  //实名认证
  certification: (data, cd) => utils.put('/app/v2/customer/certification', data, cd),

  //2022-7-29
  //店铺-查询banner图
  getBanner: (data, cd) => utils.get('/app/configure/groupon/banner/list', data, cd),
  //获取专题标题
  getConfig: (data, cd) => utils.get('/app/configure/groupon/getConfig', data, cd),
  //获取 团购专题配置
  configureSelect: (data, cd) => utils.get('/app/v1/customer/common/groupon/configure/select', data, cd),
  //团购信息列表
  grouponList: (data, cd) => utils.get('/app/configure/groupon/grouponList', data, cd),

  //2023-4-11
  //上传图片新-带http
  appUploadFileNew: (data, cd) => utils.uploadFile('/app/v1/customer/common/upload', data, cd),
  //计费、计次、课时卡退卡
  allReturnCard: (data, cd) => utils.onepost('/app/v1/asset/card/returnCard', data, cd),
  //计费卡、计次卡、课时卡 激活卡片
  cardActivation: (data, cd) => utils.onepost('/app/v1/asset/card/activation', data, cd),
  //查询商家下拉框
  govMerchantList: (data, cd) => utils.get('/front/gov/appeal/govMerchantList', data, cd),
  //生成验证码
  captchaImage: (data, cd) => utils.get('/front/gov/appeal/captchaImage', data, cd),
  //我要申诉
  addAppeal: (data, cd) => utils.twopost('/front/gov/appeal/addAppeal', data, cd),
  //生成验证码
  appealDetail: (data, cd) => utils.get('/front/gov/appeal/detail', data, cd),
  //查询待申请信息
  applyInfo: (data, cd) => utils.get('/front/gov/appeal/apply/info', data, cd),

  //2023-8-22
  //查询会员码
  memberQrcode: (data, cd) => utils.get('/app/v1/customer/member/qrcode', data, cd),
  //查询会员码
  qrcodeScan: (data, cd) => utils.get('/app/v2/customer/asset/qrcode/scan', data, cd),
  //查询卡二维码
  cardQrcode: (url, data, cd) => utils.get(url, data, cd),
  //轮播图配置 首页集合
  bannerList: (data, cd) => utils.get('/kyy/banner/config/getList', data, cd),

  //2023-8-23
  // 获取实名验证码
  codeImg: (data, cd) => utils.get('/app/v2/customer/captchaImage', data, cd),
  // 查询用户是否实名
  certificationInfo: (data, cd) => utils.get('/app/v2/customer/certificationInfo', data, cd),
  //2023-8-29
  //查询订阅模版id
  subscriptionLs: (data, cd) => utils.get('/wx/ma/subscription/subscription/list', data, cd),
  //订阅消息
  subscriptionScuess: (data, cd) => utils.twopost('/wx/ma/subscription/subscription', data, cd),
}